scores_dic = {
  "tom": 130,
  "mike": 100,
  "sandy": 90,
  "jenny": 115
}
# print(salary_dic)
# 1.输出学生姓名、成绩
print(f"姓名{list(scores_dic.keys())}")
print(f"成绩{list(scores_dic.values())}")
# 2.添加新学生
scores_dic.update({"wendy": 128})
print(f"姓名{list(scores_dic.keys())}")
print(f"成绩{list(scores_dic.values())}")
# 3.更新学生成绩
scores_dic.update({"tom": 131})
print("修改后的成绩单：")
print(f"姓名{list(scores_dic.keys())}")
print(f"成绩{list(scores_dic.values())}")
# 4.删除学生记录
stu1 = input("请输入要删除的学生姓名：")
if stu1 in scores_dic.keys():
  scores_dic.pop(stu1)
  print(scores_dic)
else:
  print("没有该学生信息！")
# 5.查找某个学生成绩
stu2 = input("请输入要查询的学生姓名：")
if stu2 in scores_dic.keys():
  st_score = scores_dic.get(stu2)
  print(st_score)
else:
  print("没有该学生信息！")
